﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace MVCGalloSoftMV5.Models
{
    [Table("TipoUnidad")]
    public class TipoUnidad
    {
        [Key]
        public int TipoUnidadId { get; set; }

        [Column("Unidad")]
        [Display(Name = "Unidad")]
        [StringLength(50, MinimumLength = 1)]
        [Required(ErrorMessage = "Campo Unidad es requerido.")]        
        public string Unidad { get; set; }
    }
}
